package cn.wolfcode.wolf2w.query;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.HashMap;
import java.util.Map;

@Getter
@AllArgsConstructor
public class TravelCondition {
    //两个实例
    public static final Map<Integer,TravelCondition> MAP_PEREXPEND=new HashMap<>();
    public static final Map<Integer,TravelCondition> MAP_DAY=new HashMap<>();
    static {
        //静态代码中进行初始化操作
        MAP_PEREXPEND.put(1, new TravelCondition(1,999));
        MAP_PEREXPEND.put(2, new TravelCondition(1000,6000));
        MAP_PEREXPEND.put(3, new TravelCondition(6001,20000));
        MAP_PEREXPEND.put(4, new TravelCondition(20001,Integer.MAX_VALUE));

        //
        MAP_DAY.put(1, new TravelCondition(0,3));
        MAP_DAY.put(2, new TravelCondition(4,7));
        MAP_DAY.put(3, new TravelCondition(8,14));
        MAP_DAY.put(4, new TravelCondition(15,Integer.MAX_VALUE));

    }
    private Integer min;
    private Integer max;
}
